package com.configserver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 作者: LCG
 * 日期: 2019/12/5 09:49
 * 描述: ConfigServer 启动类
 */

@SpringBootApplication
@EnableConfigServer
@RestController
public class configServer {

    public static void main(String[] args) {
        SpringApplication.run(configServer.class);
    }


    @RequestMapping("/testHelth")
    public String test(){
        System.out.println("========testHelth=======");
        return "ok-helth";
    }

}
